package com.baidu.dtx.inventory.api;

import com.baidu.dtx.inventory.dto.InventoryDTO;
import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author shilei
 * @create 2021-05-13 22:09
 */
@FeignClient("DTX-INVENTORY9001")//后续发布的库存微服务在Eureka里面叫什么FeignClient写什么
public interface InventoryApi {

    @Hmily
    @RequestMapping("/inventory/decrease")
    public String decrease(@RequestBody InventoryDTO inventoryDTO);
}

